Skip to main content

DescribeNetworkInterfaces

Description

call DescribeNetworkInterfaces to view the list of flexible network cards (ENI).

Request Method

POST

Request Path

/apsara/route/Ecs/DescribeNetworkInterfaces

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
StatusBODYstringNoInUsenetwork card status. Value range: Creating: Creating Available: not mounted Attaching: Mount InUse: mounted Detaching: Separating Deleting: Deleting CreateFailed: creation failed and belongs to abnormal state default value: empty, indicating that all states are queried.
Tag.N.KeyBODYstringNoTestKeythe tag value of the flexible network card. The value range of n is 1~20.
ResourceGroupIdBODYstringNorg-bp67acfmxazb4p****resource group ID.
ServiceManagedBODYbooleanNotruewhether the user of the flexible network card is a cloud product or a virtual vendor.
PageSizeBODYintegerNo100the paging size of the query result. maximum value: 100. default value: 10. /p> p data-tag = "p" class = "p"> please refer to the interface description above for setting the returned data in this interface.
NextTokenBODYstringNoAAAAAdDWBF2****query credentials (Token), the value is NextToken parameter value returned from the last API call. /span>/p> p data-tag = "p" class = "p"> please refer to the interface description above for setting the returned data.
InstanceIdBODYstringNoi-bp1e2l6djkndyuli****the instance ID currently associated with the ENI.
VSwitchIdBODYstringNovsw-bp16usj2p27htro3****VPC switch ID.
SecurityGroupIdBODYstringNosg-bp144yr32sx6ndw****security group ID.
MaxResultsBODYintegerNo50The maximum number returned. Value range: 1~500. default value: 10.
NetworkInterfaceNameBODYstringNomy-eni-namethe name of the elastic network card.
PrimaryIpAddressBODYstringNo192.168.*.*the IP address of the flexible network card.
versionBODYstringNo2016-01-01version of api
TypeBODYstringNoSecondaryflexible network card type. Value range: Primary: primary network card Secondary: auxiliary flexible network card default value: empty, indicating that all types are queried.
VpcIdBODYstringNovpc-wz9wh0fywtu5szszb****VPC ID of the network to which the network card belongs.
PageNumberBODYintegerNo1the page number of the query result. starting value: 1. default value: 1.
regionIdBODYstringYesNo sample value for this parameter.region id
Tag.N.ValueBODYstringNoTestValuetag key of elastic network card. The value range of n is 1~20.
PrivateIpAddress.NBODYrepeatlistNo192.168.*.*the secondary private IP address of the flexible network card, the value range of n is 1~100.
NetworkInterfaceId.NBODYrepeatlistNoeni-bp125p95hhdhn3ot****ENI ID. The value range of n is 1~100.
RegionIdBODYstringYescn-qingdao-env17-d01region ID. You can call the DescribeRegions to view the latest Alibaba Cloud region list.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}